# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=sfwbar
pkgver=1.0_beta14
pkgrel=0
pkgdesc="Sway Floating Window Bar"
url="https://github.com/LBCrion/sfwbar"
arch="all"
license="GPL-3.0-only AND MIT"
makedepends="
	gtk+3.0-dev
	gtk-layer-shell-dev
	json-c-dev
	meson
	pulseaudio-dev
	"
subpackages="$pkgname-doc"
source="https://github.com/LBCrion/sfwbar/archive/v$pkgver/sfwbar-$pkgver.tar.gz"
options="!check"  # no tests provided

build() {
	abuild-meson -Db_lto=true . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
e1a1c9d0a8b3c80c3ef043c6f22bb2b915cdf1f36da6ce306f66754af2a68c2077f4e473bd998d6d6282db5fc0652b7b7bbbe333a39390e7e38129163a398055  sfwbar-1.0_beta14.tar.gz
"
